package com.yequan.exe.business;

import com.yequan.exe.core.annotation.ExeService;
import com.yequan.exe.core.handler.AbstractExeHandler;
import com.yequan.pojo.CalcData;
import com.yequan.pojo.ExeInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yq
 * @date 2020/09/29
 */
@ExeService("flowCalcService")
public class FlowExeHandler extends AbstractExeHandler {
    @Override
    public void combineCommand(CalcData calcData) {
        List<String> command = new ArrayList<>();
        ExeInfo exeInfo = calcData.getExeInfo();
//        command.add(exeInfo.getExePath());
        command.add(exeInfo.getExeName());
        command.add(exeInfo.getLogPath());
        exeInfo.setCommand(command);
    }
}
